package com.tencent.ncnnyolox.net;

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/11/24
 *     desc   : 返回体
 * </pre>
 */

import com.google.gson.annotations.SerializedName;

/**
 * {"output":{"finish_reason":"stop","text":"我爱你。"},"usage":{"total_tokens":12,"output_tokens":2,"input_tokens":10},"request_id":"14fdccda-24af-9b60-bb28-811c5cf10538"}
 */
public class ResponseBean {


    @SerializedName("output")
    private OutputDTO output;
    @SerializedName("usage")
    private UsageDTO usage;
    @SerializedName("request_id")
    private String requestId;

    public OutputDTO getOutput() {
        return output;
    }

    public void setOutput(OutputDTO output) {
        this.output = output;
    }

    public UsageDTO getUsage() {
        return usage;
    }

    public void setUsage(UsageDTO usage) {
        this.usage = usage;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public static class OutputDTO {
        @SerializedName("finish_reason")
        private String finishReason;
        @SerializedName("text")
        private String text;

        public String getFinishReason() {
            return finishReason;
        }

        public void setFinishReason(String finishReason) {
            this.finishReason = finishReason;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public static class UsageDTO {
        @SerializedName("total_tokens")
        private Integer totalTokens;
        @SerializedName("output_tokens")
        private Integer outputTokens;
        @SerializedName("input_tokens")
        private Integer inputTokens;

        public Integer getTotalTokens() {
            return totalTokens;
        }

        public void setTotalTokens(Integer totalTokens) {
            this.totalTokens = totalTokens;
        }

        public Integer getOutputTokens() {
            return outputTokens;
        }

        public void setOutputTokens(Integer outputTokens) {
            this.outputTokens = outputTokens;
        }

        public Integer getInputTokens() {
            return inputTokens;
        }

        public void setInputTokens(Integer inputTokens) {
            this.inputTokens = inputTokens;
        }
    }
}
